/**
 * 
 */
package rmiClient;

import interfaces.Client_ITF;

import java.io.Serializable;

/**
 * @author arthur
 * 
 */
public class Score implements Comparable<Score>, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1984381955317826423L;
	int score;
	Client_ITF client;

	/**
	 * 
	 */
	public Score() {
		score = -1;
	}

	public Score(int score, Client_ITF client) {
		super();
		this.score = score;
		this.client = client;
	}

	@Override
	public int compareTo(Score o) {
		return score - o.score;
	}

	public Client_ITF getClient() {
		return client;
	}

	public int getScore() {
		return score;
	}

	public void setClient(Client_ITF client) {
		this.client = client;
	}

	public void setScore(int score) {
		this.score = score;
	}

}
